using System.Collections;
using System.Collections.Generic;
using FlowCanvas;
using FlowCanvas.Nodes;
using UnityEngine;
using Yoozoo.Gameplay.Liberty;

namespace com.yoozoo.gta
{
    public class SetGtaGameConfig : LatentActionNodeBase
    {
        public int GTAGameConfigId = 1;
        protected override void OnRegisterDerivedPorts(FlowNode node)
        {
            node.AddFlowInput("In", (f) => { Begin(Invoke(), f); });
        }

        private IEnumerator Invoke()
        {
            bool stopped = false;
            yield return new UnityEngine.WaitUntil(() =>
            {
                return stopped;
            });
        }

        public override void OnGraphStoped()
        {
            base.OnGraphStoped();
        }
    }
}
